/**
 * 2017，thor.com，all rights reserved。
 * 
 * Project：		palmmall-api
 * Filename：	AInspectService.java
 * Created：		2017年2月7日
 * Creator：		vergar
 */
package com.thor.palmmall.rest.inspect;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.BeanOperateInfo;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;
import com.thor.palmmall.rest.common.AUserGroupLoadParam;

/**
 * @author vergar
 *
 */
@Path("/inspect")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface AInspectService {

  @POST
  @Path(value = "/create")
  String create(AInspectBill bill, @QueryParam("") BeanOperateInfo operateInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/{id}")
  AInspectBill get(@PathParam("id") String id, AUserGroupLoadParam param)
      throws ThorServiceException;

  @POST
  @Path(value = "/save")
  void save(AInspectBill bill, @QueryParam("") BeanOperateInfo operateInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/query")
  QueryResult<AInspectBill> query(AInspectBillQueryParam param) throws ThorServiceException;

  @GET
  @Path(value = "/category")
  List<ACategory> getCategories() throws ThorServiceException;

  @GET
  @Path(value = "/category/{uuid}")
  List<ACategory> getCategory(@PathParam("uuid") String uuid) throws ThorServiceException;

}
